﻿using DongFangGuoKai.WMSPlatform.Service.InventoryOrderDetail.DTO;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DongFangGuoKai.WMSPlatform.Service.InventoryOrderDetail
{
    public interface ITInventoryOrderDetailService
    {
        /// <summary>
        /// pda上显示的数据
        /// </summary>
        /// <returns></returns>
        List<StocktakingOrdersDTO>? GetStocktakingOrderList(string? orderNo, int pageindex, int pagesize, out int totalCount);

        /// <summary>
        ///修改盘点计划里的数据
        /// </summary>
        /// <param name="inventoryOrderNumberDTO"></param>
        /// <returns></returns>
        bool UpdateStocktakingOrder(InventoryOrderNumberDTO inventoryOrderNumberDTO, out string message);

        /// <summary>
        /// 添加盘点单
        /// </summary>
        /// <param name="inventories"></param>
        /// <param name="planId"></param>
        /// <param name="planNumber"></param>
        /// <returns></returns>
        bool AddStocktakingOrder(InventoryIssuanceModel inventoryIssuanceModel, out string message);

        /// <summary>
        /// 修改盘点单状态
        /// </summary>
        /// <param name="orderNum"></param>
        /// <param name="message"></param>
        /// <returns></returns>
        bool UpdateStocktakingOrderStatus(string orderNum, out string message);

        /// <summary>
        /// pc盘点查询
        /// </summary>
        /// <param name="OrderNo"></param>
        /// <param name="status"></param>
        /// <param name="pageindex"></param>
        /// <param name="pagesize"></param>
        /// <returns></returns>
        List<StocktakingOrdersDTO>? GetStocktakingOrderListPC(string? orderNo, int? status, int pageindex, int pagesize, out int totalCount);

        /// <summary>
        /// 获取返回物资系统盘点单数据
        /// </summary>
        /// <returns></returns>
        InventoryReturnModel? GetInventoryReturnData();
    }
}
